<oc-dialog oc-dialog-title="打开测试任务"
	oc-dialog-icon="lemoncelogo"
	id="open-task"
	oc-dialog-switch="MS"
	style="width:32rem;height:20rem;">
	<div class="grid" ng-controller="OpenTask">
		<nav class="oc-toolbar" style="width:100%;">
			<input type="text" class="search right" ng-model="keyword" />
		</nav>
		<oc-list style="bottom:2rem;left:.3rem;width:20rem;top:1.7rem">
			<oc-row ng-repeat="t in taskList|filter:{name:keyword,draft:isDraft}"
				ng-class="{active:task===t}"
				ng-dblclick="open()"
				ng-click="watchTask(t)">
				<oc-col label="测试任务名称" width="180">{{t.name}}</oc-col>
				<oc-col label="项目版本" width="65" locked>{{t.version}}</oc-col>
				<oc-col label="草稿" width="40" locked>{{t.draft?'是':'否'}}</oc-col>
				<oc-col label="更新日期" width="90" locked>{{t.updatetime|date:'yyyy-MM-dd'}}</oc-col>
			</oc-row>
		</oc-list>
		<div style="top:1.7rem;right:.3rem;left:20.6rem;bottom:2rem;
			border:1px solid #ccc;list-style:none;padding:0.3rem;">
			<p ng-hide="task">选择一个查看描述</p>
			<p ng-show="task">{{task.comment}}</p>
		</div>
		<button style="right:0.3rem;bottom:0.3rem"
			ng-disabled="!task"
			ng-click="open()">打开</button>
	</div>
</oc-dialog>
